<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:form id="frmEditBanking">
        <f:view>
            <p:dialog id="dlgEditBanking"
                      widgetVar="wgEditBanking"
                      header="Edit Infomation Banking"
                      draggable="true"
                      showEffect="fade"
                      hideEffect="clip">

                <h:panelGrid columns="2">
                    <h:outputLabel value="BankName:" for="bankName" />
                    <h:inputText id="bankName" value="#{bankingManagement.selectBanking.bankName}" title="BankName" maxlength="30" />
                    <h:outputLabel value="BankPhone:" for="bankPhone" />
                    <h:inputText id="bankPhone" value="#{bankingManagement.selectBanking.bankPhone}" title="BankPhone" maxlength="14" />
                    <h:outputLabel value="Address:" for="address" />
                    <h:inputText id="address" value="#{bankingManagement.selectBanking.address}" title="Address" maxlength="300" />
                    <h:outputLabel value="Email:" for="email" />
                    <h:inputText id="email" value="#{bankingManagement.selectBanking.email}" title="Email" />
                    <h:outputLabel value="BankNumber:" for="bankNumber" />
                    <h:inputText id="bankNumber" value="#{bankingManagement.selectBanking.bankNumber}" title="BankNumber" maxlength="16" />
                </h:panelGrid>
                <f:facet name="footer">
                    <p:commandButton id="btnEditBanking"
                                     value="Save"
                                     icon="ui-icon-check"
                                     style="margin:0"
                                     actionListener="#{bankingManagement.edit}"
                                     update=":frmViewBanking:dtViewBanking,:growl"
                                     oncomplete="BankingManagementRequest(xhr, status, args)"
                                     />
                       <p:commandButton id="btnCancelEditBanking"
                                     value="Cancel"
                                     icon="ui-icon-check"
                                     style="margin:0"
                                     onclick="wgEditBanking.hide();"
                                     />
                </f:facet>

            </p:dialog>
        </f:view>
    </h:form>
</html>
